package shixhun;

import javax.swing.*;
import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;

public class mantianxing {
    static AudioClip ac;
    static URL url;
    static {
        url=mantianxing.class.getResource("111.wav");
        ac = Applet.newAudioClip(url);
    }
    public  static void main(String [] args){
       ac.play();
        //创建窗口对象
        JFrame jf=new JFrame("满天星");
        //设置窗口大小
        jf.setSize(1024,700);
        //设置窗口位置
        jf.setLocation(200,200);
        //退出窗口进程关闭
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        StarJpanel sj = new StarJpanel();
        jf.add(sj);

        jf.setVisible(true);
    }
}
